from login.models import Session

def login (employee_id, session_token):
    s = Session(employee_id=employee_id, session_token=session_token)
    return s.save()

def logout (employee_id, session_token):
    s = Session.objects.get(employee_id=employee_id, session_token=session_token)
    return s.delete()
    
    